home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12337 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  685 b 

  1. Path: gradine.cis.upenn.edu!gentile
  2. From: gentile@gradine.cis.upenn.edu (Elizabeth J Gentile)
  3. Newsgroups: comp.lang.c
  4. Subject: manipulating file pointer
  5. Date: 30 Mar 1996 19:35:22 GMT
  6. Organization: University of Pennsylvania
  7. Message-ID: <4jk2dq$d87@netnews.upenn.edu>
  8. NNTP-Posting-Host: gradine.cis.upenn.edu
  9. X-Newsreader: TIN [version 1.2 PL2-upenn1.3]
  10.  
  11. I have a file with 80,000 lines - each line contains an integer value.
  12.  
  13. I'm using fscanf to read each line, but when I reach the end of the file, 
  14. I want to be able to go back to the beginning without reopening the file.
  15.  
  16. Is there some way I can do this?
  17. (please respond by email to
  18.  gentile@gradient.cis.upenn.edu )
  19.  
  20. Thanks,
  21. Liz
  22.